<?php

include_once ('../sys/sys.php');
include_once ('./gfun.php');
include_once ('./funcs.php');
header ( 'Content-Type: text/html; charset=utf-8' );


$file_local = "D:/web/hf/downloadpic/";


$tid = $_GET ['action'];

if ($tid != "elsesky") {
	show_normal_mesR ( 'TAG ID错误', 'TAG ID错误', 'TAG查询' );
}

echo '<textarea rows="20" cols="80" tabindex="2" class="txtarea">';
	$DB->build_query ( array (
			'select' => 'imgurl,imgorgurl',
			'from' => 'gfunpics' 
	) );
	$pid = $DB->exec_query ();
	while ( $qrow = $DB->fetch_row ( $pid ) ) {
		$pics .= $qrow ['imgurl'];
		$localpic = $file_local . $pics;
		if(!file_exists($localpic)){
			echo $qrow ['imgorgurl'];
			echo "\r\n";
			ob_flush();
		}
	}
	echo '</textarea>';
	exit;
?>